home *** CD-ROM | disk | FTP | other *** search
- Path: in2.uu.net!tandem!francis
- From: francis@patch.tandem.com (Francis E. Chang)
- Newsgroups: comp.lang.c
- Subject: [Perf:] mem*() procs vs. array looping
- Date: 24 Feb 1996 00:06:25 GMT
- Organization: Tandem Computers Inc., Cupertino CA
- Message-ID: <4glkq1$gu7@gazette.tandem.com>
- NNTP-Posting-Host: sunlight.patch.tandem.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Hi,
-
- Are mem*() procedures performance boosters? For example, for using
-
- memcpy(tgt, src, length);
-
- instead
-
- for (index=0; index < length; index++)
- tgt[i] = src[i];
-
- how much saving would it have? Would a smart compiler optimize
- the second solution?
-
- TIA
-
- Francis Chang
-
- --
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- = The opinions expressed here do not reflect those of my employer. =
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- = Francis Chang francis@patch.tandem.com =
- = Tandem Computers Inc. (408)285-6863 Phone =
- = NonStop SQL Development (408)285-2227 FAX =
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-